7 février 2019

Overview

Data

The data used for this application is cars from the datasets package.
This dataset contains 50 records of 2 features.
The data give the speed of cars and the distances taken to stop then (the data in from the 1920s).

head(cars)
##   speed dist
## 1     4    2
## 2     4   10
## 3     7    4
## 4     7   22
## 5     8   16
## 6     9   10

Web application

The web application calculates linear / polynomial regression of the 2 features.

The users can pick if he wants :
- speed~dist or dist~speed
- a linear regression or a polynomial regression (up to 5 degrees)
- a value (the preticted value will be displayed).

The plot uses plotly.
The numeric input field is dynamic and the max value depends of the formula.

Exemple

Formula : dist~speed - 2 degree polynomial, value = 15

Predicted value for 15 : 38.7